<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="https://cdn.dingxiang-inc.com/ctu-group/captcha-ui/index.js"></script>
		<script src="bck/static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="c1"></div>
		<script type="text/javascript">
			var myCaptcha = _dx.Captcha(document.getElementById('c1'), {
				    appId: '9be12d3c3104f8574fdd5d545f715df8', //appId，在控制台中“应用管理”或“应用配置”模块获取
				    success: function (token) {
				      //console.log('token:', token)
				      $.ajax({
				      	type:"get",
				      	//url:"/Xphp/CaptchaDemo.php?token="+token,
				      	url:"/yzm.php?token="+token,
				      	success:function(msg){
				      		console.log(msg);
				      	}
				      });
				    }
				})
			
			myCaptcha.on('passByServer',function(token) {
				    console.log(token);
			});
		</script>
		
	</body>
</html>
